package app.texas.com.devilfishhouse.View.Fragment.houuseList;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import com.universal_library.adapter.BaseAdapter;

import app.texas.com.devilfishhouse.Beans.HouseBean;
import app.texas.com.devilfishhouse.R;

/**
 * Created by solin on 2018/7/20.
 */

public class NewHouseListAdapter extends BaseAdapter<HouseBean, NewHouseListAdapter.HolderView> {


    public NewHouseListAdapter(Context mContext) {
        super(mContext);
    }

    @Override
    public HolderView onCreateViewHolder(ViewGroup parent, int viewType) {
        return new HolderView(mInflater.inflate(R.layout.item_house, parent, false));
    }

    @Override
    public void onBindViewHolder(HolderView holder, int position) {
        if (mItems.size() > 0) {

        }
    }

    public class HolderView extends RecyclerView.ViewHolder {
        private ImageView iv_item_icon;
        private TextView tv_itemName, tv_itemAddress, tv_itemType, tv_item_price, tv_item_status;

        public HolderView(View itemView) {
            super(itemView);
            iv_item_icon = itemView.findViewById(R.id.iv_item_icon);
            tv_itemName = itemView.findViewById(R.id.tv_itemName);
            tv_itemAddress = itemView.findViewById(R.id.tv_itemAddress);
            tv_itemType = itemView.findViewById(R.id.tv_itemType);
            tv_item_price = itemView.findViewById(R.id.tv_item_price);
            tv_item_status = itemView.findViewById(R.id.tv_item_status);
        }
    }
}
